package com.atguigu.spring.listener;

import org.springframework.context.ApplicationEvent;
import org.springframework.context.ApplicationListener;
import org.springframework.stereotype.Component;

/**
 * 显示自定义实现监听器
 * @author mi
 * @time 2021/4/19 0:43
 */
@Component
public class AppDefinationListener implements ApplicationListener<ApplicationEvent> {
	/**
	 * Handle an application event.
	 *
	 * @param event the event to respond to
	 */
	@Override
	public void onApplicationEvent(ApplicationEvent event) {
		System.out.println("自定义监听器..."+event);
	}
}
